import service from '@/utils/request'

// @Tags EyeNumberDocument
// @Summary 创建眼型编号主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.EyeNumberDocument true "创建眼型编号主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /eyeNumberDocument/createEyeNumberDocument [post]
export const createEyeNumberDocument = (data) => {
  return service({
    url: '/eyeNumberDocument/createEyeNumberDocument',
    method: 'post',
    data
  })
}

// @Tags EyeNumberDocument
// @Summary 删除眼型编号主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.EyeNumberDocument true "删除眼型编号主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /eyeNumberDocument/deleteEyeNumberDocument [delete]
export const deleteEyeNumberDocument = (params) => {
  return service({
    url: '/eyeNumberDocument/deleteEyeNumberDocument',
    method: 'delete',
    params
  })
}

// @Tags EyeNumberDocument
// @Summary 批量删除眼型编号主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除眼型编号主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /eyeNumberDocument/deleteEyeNumberDocument [delete]
export const deleteEyeNumberDocumentByIds = (params) => {
  return service({
    url: '/eyeNumberDocument/deleteEyeNumberDocumentByIds',
    method: 'delete',
    params
  })
}

// @Tags EyeNumberDocument
// @Summary 更新眼型编号主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.EyeNumberDocument true "更新眼型编号主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /eyeNumberDocument/updateEyeNumberDocument [put]
export const updateEyeNumberDocument = (data) => {
  return service({
    url: '/eyeNumberDocument/updateEyeNumberDocument',
    method: 'put',
    data
  })
}

// @Tags EyeNumberDocument
// @Summary 用id查询眼型编号主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.EyeNumberDocument true "用id查询眼型编号主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /eyeNumberDocument/findEyeNumberDocument [get]
export const findEyeNumberDocument = (params) => {
  return service({
    url: '/eyeNumberDocument/findEyeNumberDocument',
    method: 'get',
    params
  })
}

// @Tags EyeNumberDocument
// @Summary 分页获取眼型编号主档列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取眼型编号主档列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /eyeNumberDocument/getEyeNumberDocumentList [get]
export const getEyeNumberDocumentList = (params) => {
  return service({
    url: '/eyeNumberDocument/getEyeNumberDocumentList',
    method: 'get',
    params
  })
}
